package org.tempuri;

public class SAPServicesSoapProxy implements SAPServicesSoap {
  private String _endpoint = null;
  private SAPServicesSoap sAPServicesSoap = null;

  public SAPServicesSoapProxy() {
    _initSAPServicesSoapProxy();
  }

  public SAPServicesSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initSAPServicesSoapProxy();
  }

  private void _initSAPServicesSoapProxy() {
    try {
      sAPServicesSoap = (new SAPServicesLocator()).getSAPServicesSoap();
      if (sAPServicesSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)sAPServicesSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)sAPServicesSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }

    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }

  public String getEndpoint() {
    return _endpoint;
  }

  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (sAPServicesSoap != null)
      ((javax.xml.rpc.Stub)sAPServicesSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

  }

  public SAPServicesSoap getSAPServicesSoap() {
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap;
  }

  public String OKHS(int type, int id, OCRD[] lstOCRD, CRD1[] lstCRD1, OCPR[] lstOCPR) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.OKHS(type, id, lstOCRD, lstCRD1, lstOCPR);
  }

  public String SAP_ORDR(int id, ORDR[] ordrList, RDR1[] rdr1List, RDR3[] rdr3List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_ORDR(id, ordrList, rdr1List, rdr3List);
  }

  public String SAP_OITM(int id, OITM[] oitmList) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_OITM(id, oitmList);
  }

  public String SAP_OWOR(int id, OWOR[] oworList, WOR1[] worqList) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_OWOR(id, oworList, worqList);
  }

  public String SAP_OWTR(OWTR[] owtrList, WTR1[] wtr1List, WTR2[] wtr2List, WTR3[] wtr3List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_OWTR(owtrList, wtr1List, wtr2List, wtr3List);
  }

  public String SAP_OQUT(int id, OQUT[] oqutList, QUT1[] qut1List, QUT3[] qut3List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_OQUT(id, oqutList, qut1List, qut3List);
  }

  public String SAP_OITT(int id, OITT[] oittList, ITT1[] itt1List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_OITT(id, oittList, itt1List);
  }

  public String SAP_XMLX(int id, TS_XMLX[] ts_xmlxList, TS_LXJH[] ts_lxjhList, TS_LXRY[] ts_lxryList, TS_LXZQ[] ts_lxzqList) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_XMLX(id, ts_xmlxList, ts_lxjhList, ts_lxryList, ts_lxzqList);
  }

  public String SAP_ECN(int id, TS_ECN[] ts_ecnList, TS_ECNH[] ts_ecnhList) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_ECN(id, ts_ecnList, ts_ecnhList);
  }

  public String SAP_OPDN(OPDN[] opdnList, PDN1[] pdn1List, PDN2[] pdn2List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_OPDN(opdnList, pdn1List, pdn2List);
  }

  public String SAP_OIGN(OIGN[] oignList, IGN1[] ign1List, IGN2[] ign2List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_OIGN(oignList, ign1List, ign2List);
  }

  public String SAP_WOIGN(OIGN[] oignList, IGN1[] ign1List, IGN2[] ign2List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_WOIGN(oignList, ign1List, ign2List);
  }

  public String SAP_ORDN(ORDN[] ordnList, RDN1[] rdn1List, RDN2[] rdn2List, RDN3[] rdn3List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_ORDN(ordnList, rdn1List, rdn2List, rdn3List);
  }

  public String SAP_OIGE(OIGE[] oigeList, IGE1[] ige1List, IGE2[] ige2List, IGE3[] ige3List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_OIGE(oigeList, ige1List, ige2List, ige3List);
  }

  public String SAP_WOIGE(OIGE[] oigeList, IGE1[] ige1List, IGE2[] ige2List, IGE3[] ige3List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_WOIGE(oigeList, ige1List, ige2List, ige3List);
  }

  public String SAP_ORPD(ORPD[] oprdList, RPD1[] rpd1List, RPD2[] rpd2List, RPD3[] rpd3List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_ORPD(oprdList, rpd1List, rpd2List, rpd3List);
  }

  public String SAP_ODLN(ODLN[] odlnList, DLN1[] dln1List, DLN2[] dln2List, DLN4[] dln4List, DLN3[] dln3List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_ODLN(odlnList, dln1List, dln2List, dln4List, dln3List);
  }

  public String SAP_OPOR(int id, OPOR[] oporList, POR1[] por1List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_OPOR(id, oporList, por1List);
  }

  public String SAP_OVPM(int id, OVPM[] ovpmsList, VPM2[] vpm2List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_OVPM(id, ovpmsList, vpm2List);
  }

  public String SAP_ODPO(ODPO[] odpoList, DPO1[] dpo1List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_ODPO(odpoList, dpo1List);
  }

  public String SAP_OPRQ(int id, OPRQ[] oprqList, PRQ1[] prq1List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_OPRQ(id, oprqList, prq1List);
  }

  public String SAP_OBTF(OBTF[] obtfList, BTF1[] btf1List) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_OBTF(obtfList, btf1List);
  }

  public String SAP_CPBJ(TS_CPBJ[] ts_cpbjList, TS_BJH1[] ts_bjh1List, TS_BJH2[] ts_bjh2List, TS_BJH3[] ts_bjh3List, TS_XPZQ[] ts_xpzqList) throws java.rmi.RemoteException{
    if (sAPServicesSoap == null)
      _initSAPServicesSoapProxy();
    return sAPServicesSoap.SAP_CPBJ(ts_cpbjList, ts_bjh1List, ts_bjh2List, ts_bjh3List, ts_xpzqList);
  }


}
